import {createRouter, createWebHashHistory} from 'vue-router'
import loginRoutes from './modules/login'
import homeRoutes from './modules/home'
import articleRoutes from './modules/article'
import newsRoutes from './modules/news'


const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            redirect: '/home',
        },
        ...homeRoutes,
        ...loginRoutes,
        ...articleRoutes,
        ...newsRoutes
    ]
})
export default router